package dao.impl;

import dao.BaseDao;
import dao.ICategoryDao;
import pojo.Category;

import java.util.List;

public class CategoryDaoImpl extends BaseDao implements ICategoryDao {
    /**
     * 查询所有商品种类
     *
     * @return List<Category>
     */
    @Override
    public List<Category> queryAllCategories() {
        return queryForList(Category.class,"select id,category from t_category");
    }
}
